<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .grid-container {
      border: 2px solid red;
      /* 网格布局 */
      display: grid;
      grid-template-rows: 100px;
      grid-template-columns: 200px auto 200px;
    }
    .grid-item:nth-child(1) {
      background-color: skyblue;
    }
    .grid-item:nth-child(2) {
      background-color: pink;
      /* width: 500px; */
    }
    .grid-item:nth-child(3) {
      background-color: khaki;
    }
  </style>
  <body>
    <!-- 
    TIP
    auto 表示当对应单元格的列宽或行高会自动计算，但单元格的列宽和行高始终都会 >= 放置在当前单元格中元素宽和高
    -->

    <div class="grid-container">
      <div class="grid-item">1</div>
      <div class="grid-item">2</div>
      <div class="grid-item">3</div>
    </div>
  </body>
</html>